package com.dcd.service.impl;

import com.dcd.pojo.Video;
import com.dcd.service.VideoService;
import org.apache.solr.client.solrj.SolrServerException;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.*;

@Service
public class VideoServicimpl implements VideoService {
    @Override
    public Map<String, Object> select_all_video_program(Integer pageVideoindex, Integer video_type_id) {
        Map<String, Object> map = new HashMap<>();
        List<Video> list = new ArrayList<>();
        list.add(new Video(1, 1, 6, 1, 1, "aodiA4L4.jpg", "xx.mp4", 90, new Date(), "xxx", null, null, null));
        map.put("Pagedata", list);
        return map;
    }

    @Override
    public List<Video> select_All_video_ranking() {
        List<Video> list = new ArrayList<>();
        list.add(new Video(1, 1, 1, 6, 1, "aodiA4L4.jpg", "xx.mp4", 90, new Date(), "xxx", null, null, null));
        return list;
    }

    @Override
    public List<Video> select_series_id_video(Integer car_series_id) {
        return null;
    }

    @Override
    public List<Video> select_new_video_mess() {
        return null;
    }



    @Override
    public Map<String, Object> select_appoint_program_all_video(int program_id, int car_series_id, int page_index) {
        return null;
    }

    @Override
    public Map<String, Object> select_video_by_solr(String solr_content, int page_index) throws IOException, SolrServerException {
        return null;
    }

    @Override
    public Video select_videoByID_video(Integer video_id) {
        return null;
    }

    @Override
    public List<Video> select_video_id_all(Integer video_id) {
        return null;
    }

}
